|
|
|
|
|
|
|
Public Sub ShowCust()
With mdiMain.ActiveForm
.txtMember(0).Text = CustRset!LastName & ""
.txtMember(1).Text = CustRset!FirstName & ""
.txtMember(2).Text = CustRset!Address1 & ""
.txtMember(3).Text = CustRset!City & ""
.txtMember(4).Text = CustRset!State & ""
.txtMember(5).Text = CustRset!Zip & ""
End With
End Sub |
|
|
|
|
|
|
|
|
As you run the program, you can create new windows for each customer that you add, or change the status of the Create New Form menu item to display each customer in the same window. As stated previously, this example is merely is an illustration of the concept, so feel free to add your own enhancements to the program. The MDI contact manager is shown in Figure 17.21. |
|
|
|
|
|
|
|
|
Figure 17.21
You can display multiple clients at the same time. |
|
|
|
|
|
|
|
|
Optimizing Your MDI Application |
|
|
|
|
|
|
|
|
This chapter demonstrated a number of techniques that you can use to create MDI applications. As you can see, the MDI form can be a powerful tool for creating programs. However, there are several considerations to keep in mind to optimize your MDI applications. These |
|
|
|
|
|